<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <style>
        *{
            padding: 0;
            margin: 0;
            list-style: none;
            text-decoration: none;
        }
        .w{
            width: 1200px;
            margin: 0 auto;
        }
        body{
            background: rgb(221, 221, 221);
        }
        .main{
            height: 1300px;
            background: #fff;
            padding: 20px;
        }
        .tit{
            height: 40px;
        }
        .div1{
            width: 100%;
        }
        .div1 .box1{
            float: left;
            position: relative;
        }
        .div1 .box1 .xian{
            position: absolute;
            top: 42px;
            left: 0px;
            width: 1200px;
            height: 2px;
            background: #ccc;
        }
        .div1 .box1 li{
            width: 100px;
            height: 40px;
            line-height: 40px;
            text-align: center;
            float: left;
            border-bottom: 2px solid transparent;
        }
        .div1 .box1 li:nth-child(1){
            border-bottom: 2px solid #f00;
            color: #f00;
        }
        .div1 .box1 li:hover{
            cursor: pointer;
            transition: 1s all;
            border-bottom: 2px solid #f00;
            color: #f00;
        }
        .div1 .box2{
            float: right;
            height: 40px;
            line-height: 40px;
            text-align: center;
            position: relative;
        }
        .div1 .box2 span{
            position: absolute;
            right: 5px;
            bottom: 10px;
            color: #f00;
        }
        .div1 .news{
            height: 1200px;
            margin-top: 30px;
            width: 80%;
            margin-left: 10%;
        }
        .div1 .news li{
            float: left;
            width: 460px;
            height: 80px;
            margin: 10px;
            margin-top: 40px;
            box-shadow: 1px 1px 10px transparent;
        }
        .div1 .news li:hover{
            transition: 1s all;
            cursor: pointer;
            box-shadow: 1px 1px 10px #000;
        }
        .div1 .news .box1{
            float: left;
            width: 60px;
            height: 60px;
            margin-top: 10px;
            margin-left: 10px;
            background: rgb(255, 164, 164);
            text-align: center;
        }
        .div1 .news .box1 p:nth-child(1){
            margin-top: 10px;
            color: #f00;
        }
        .div1 .news .box1 p:nth-child(2){
            color: #ccc;
        }
        .div1 .news .box2{
            float: left;
            height: 60px;
            margin-top: 10px;
            margin-left: 10px;
            text-align: left;
        }
        .div1 .news .box2 p{
            color: rgb(170, 170, 170);
        }
        .div1 .news .box2 p:hover{
            cursor: pointer;
            color: rgb(255, 0, 0);
        }
        .div1 .news .box2 p:nth-child(1){
            height: 30px;
            font-weight: bolder;
        }
        .ck{
            margin-top: 20px;
            width: 100%;
            height: 40px;
            text-align: center;
            color: lightslategray;
        }
        .div1 h1{
            margin-top: 20px;
            width:100%;
            height: 500px;
            text-align: center;
            line-height: 500px;
        }
        .foot{
            border-top: 1px solid #000;
            padding: 20px;
            height: 400px;
            background: #fff;
        }
        .f1{
            margin-top: 50px;
            width: 350px;
            height: 300px;
            margin-left: 40px;
            float: left;
            border-right: 1px solid #000;
        }
        .f1 img{
            margin-top: 50px;
        }
        .foot .f1:nth-child(2) p{
            margin-top: 50px;
            text-align: center;
        }
        .foot .f1:nth-child(3){
            border-right: 1px solid transparent;
        }
    </style>

    <style>
        @import "../../css/bass.css";
        @import "//at.alicdn.com/t/font_2628658_em313ldpu87.css";
        @import "//at.alicdn.com/t/font_2628658_avkowx9zqn.css";

        .nav-bar1 {
            min-width: 1205px;
            height: 140px;
            background-color: #fff;
            position: sticky;
            top: 0;
            z-index: 999;
            padding-top: 30px;
            margin-bottom: 15px;
        }
        .nav-bar1 .content {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        .nav-bar1 .content .top {
            flex: 1;
            display: flex;
        }
        .nav-bar1 .content .top > .left {
            flex: 1;
        }
        .nav-bar1 .content .top > .left h1 {
            width: 193px;
            height: 65px;
        }
        .nav-bar1 .content .top > .left h1 a {
            width: 100%;
            height: 100%;
            display: block;
            font-size: 0;
            background-image: url(../../components/image/img.png);
            background-size: contain;
            background-repeat: no-repeat;
        }
        .nav-bar1 .content .top > .center {
            flex: 2;
            display: flex;
            justify-content: flex-end;
        }
        .nav-bar1 .content .top > .center .search-bar {
            width: 400px;
            height: 40px;
            border: 1px solid #999;
            border-radius: 20px;
            box-sizing: border-box;
            display: flex;
        }
        .nav-bar1 .content .top > .center .search-bar .category {
            background-color: deeppink;
            flex: 1;
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
            overflow: hidden;
        }
        .nav-bar1 .content .top > .center .search-bar .category label select {
            width: 100%;
            height: 100%;
            border: none;
            padding-left: 10px;
            font-size: 15px;
            color: #666;
            outline: none;
        }
        .nav-bar1 .content .top > .center .search-bar .keyword {
            background-color: pink;
            flex: 4;
        }
        .nav-bar1 .content .top > .center .search-bar .keyword input {
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            border: none;
            outline: none;
            padding-left: 10px;
        }
        .nav-bar1 .content .top > .center .search-bar .search-btn {
            background-color: cyan;
            flex: 1;
            border-top-right-radius: 20px;
            border-bottom-right-radius: 20px;
            overflow: hidden;
        }
        .nav-bar1 .content .top > .center .search-bar .search-btn input {
            width: 100%;
            height: 100%;
            border: none;
            outline: none;
            background-color: green;
            color: #fff;
            font-size: 14px;
        }
        .nav-bar1 .content .bottom {
            height: 40px;
            display: flex;
        }
        .nav-bar1 .content .bottom .left {
            flex: 1;
        }
        .nav-bar1 .content .bottom .left .menu-bar {
            width: 100%;
            height: 100%;
            display: flex;
        }
        .nav-bar1 .content .bottom .left .menu-bar li {
            padding: 0 20px;
            line-height: 30px;
            font-size: 18px;
            position: relative;
        }
        .nav-bar1 .content .bottom .left .menu-bar li a {
            color: #333;
            text-decoration: none;
        }
        .nav-bar1 .content .bottom .left .menu-bar li.active a,
        .nav-bar1 .content .bottom .left .menu-bar li:hover a {
            color: red;
        }
        .nav-bar1 .content .bottom .left .menu-bar li.active::after,
        .nav-bar1 .content .bottom .left .menu-bar li:hover::after {
            content: "";
            display: block;
            width: 50%;
            height: 5px;
            background-color: red;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
        }
        .nav-bar1 .content .bottom .right {
            flex: 1;
        }
        .nav-bar1 .content .bottom .right ul {
            height: 100%;
            display: flex;
            justify-content: flex-end;
        }
        .nav-bar1 .content .bottom .right ul li {
            padding: 0 20px;
            line-height: 40px;
            font-size: 16px;
            color: #666;
            position: relative;
        }
        .nav-bar1 .content .bottom .right ul li:hover .detail-pane {
            display: block;
        }
        .nav-bar1 .content .bottom .right ul li .detail-pane {
            width: 240px;
            height: 220px;
            background-color: #fff;
            position: absolute;
            padding-top: 10px;
            top: 50px;
            left: 50%;
            transform: translateX(-50%);
            border-radius: 10px;
            box-shadow: -1px 2px 5px 5px #ccc;
            display: none;
            text-align: center;
        }
        .nav-bar1 .content .bottom .right ul li .detail-pane .title {
            line-height: 26px;
            font-size: 14px;
            color: #333;
        }
        .nav-bar1 .content .bottom .right ul li .detail-pane .intro {
            line-height: 24px;
            font-size: 12px;
            color: #666;
        }
        .nav-bar1 .content .bottom .right ul li .detail-pane .qr_code {
            margin-top: 10px;
            width: 145px;
            height: 145px;
        }
        .nav-bar1 .content .bottom .right ul li .detail-pane::after {
            content: "";
            border: 10px solid transparent;
            border-bottom-color: #fff;
            position: absolute;
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
        }

        .subscript {
            height: 200px;
            margin-top: 15px;
        }
        .subscript .content {
            height: 90%;
            background-color: white;
            display: flex;
        }
        .subscript .content .item {
            flex: 1;
            position: relative;
        }
        .subscript .content .item:not(:first-child) {
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .subscript .content .item:not(:last-child):after {
            content: "";
            width: 1px;
            height: 80%;
            background-color: darkgray;
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
        }
        .subscript .content .item .logo {
            width: 275px;
            height: 55px;
            opacity: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            margin-top: 40PX;
            margin-left: 50px;
        }
        .subscript .content .title {
            display: block;
            color: #333333;
            text-decoration: none;
            margin-left: 15px;
            font-size: 18px;
            margin-top: 10px;
        }
        .subscript .content .subtitle {
            font-size: 18px;
            display: block;
            color: #333333;
            text-decoration: none;
            margin-left: 15px;
        }
        .subscript .content .ewm {
            width: 130px;
            height: 130px;
            opacity: 1;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            margin-top: 20PX;
            margin-left: 80px;
        }
        .subscript .content p {
            font-size: 15px;
            margin-left: 90px;
            color: #333333;
        }
        .subscript .mask {
            width: 100px;
            height: 100px;
            right: 20px;
            bottom: 20px;
            background-color: rgba(0, 0, 0, 0.6);
            position: fixed;
            opacity: 0;
            transition: all 500ms linear;
        }
        .subscript .mask.show {
            opacity: 1;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
        }
        .subscript .mask .pane {
            width: 300px;
            height: 300px;
            background-color: white;
            margin: 150px auto;
            padding: 15px;
            position: relative;
        }
        .subscript .mask .pane img {
            width: 100%;
            height: 100%;
        }
        .subscript .mask .pane .close {
            width: 20px;
            height: 20px;
            font-size: 26px;
            position: absolute;
            color: #fff;
            top: 0;
            right: 0;
        }


    </style>
</head>
<body>
<div class="nav-bar1">
    <div class="content bx">
        <div class="top">
            <div class="left">
                <h1>
                    <a href="#">
                        联通学院
                    </a>
                </h1>
            </div>
            <div class="center">
                <form action="">
                    <div class="search-bar">
                        <div class="category">
                            <label>
                                <select name="category">
                                    <option value="all">全部</option>
                                    <option value="teacher">动态</option>
                                    <option value="course">讲师</option>
                                    <option value="article">课程</option>
                                </select>
                            </label>

                        </div>
                        <div class="keyword">
                            <label>
                                <input name="kw" type="text" placeholder="请输入搜索的关键字">
                            </label>
                        </div>
                        <div class="search-btn">
                            <input type="submit" value="&#xe604; 搜索" class="iconfont">
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div class="bottom">
            <div class="left">
                <ul class="menu-bar">
                    <li class="active"><a href="#">首页</a></li>
                    <li><a href="#">信息中心</a></li>
                    <li><a href="#">教师中心</a></li>
                    <li><a href="#">课程专栏</a></li>
                </ul>
            </div>
            <div class="right">
                <ul>
                    <li class="iconfont icon-xiaochengxu">
                        微信小程序
                        <div class="detail-pane">
                            <p class="title">微信小程序</p>
                            <p class="intro">- 小程序, 真是好呀! -</p>
                            <img class="qr_code" src="../../components/image/ewm_lk.jpg" alt="">
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<div class="main w">
    <div class="div1">
        <div class="tit">
            <div class="box1">
                <li>培训动态</li>
                <li>规章制度</li>
                <li>培训简报</li>
                <li>培训基地</li>
                <div class="xian"></div>
            </div>
            <div class="box2">
                <input type="text" style="border: 1px solid #f00;">
                <span class="fa fa-search"></span>
            </div>
        </div>
        <div class="news">
            <li>
                <div class="box1">
                    <p>07-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2021年6月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>06-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2021年5月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>05-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2021年4月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>04-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2021年3月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>03-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2021年2月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>02-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2021年1月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>01-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2020年12月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>12-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>202年11月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>11-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年10月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>10-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年9月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>09-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年8月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>08-01</p>
                    <p>2021</p>
                </div>
                <div class="box2">
                    <p>2020年7月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>07-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年6月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>06-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年5月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>05-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年4月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>04-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年3月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>
            <li>
                <div class="box1">
                    <p>03-01</p>
                    <p>2020</p>
                </div>
                <div class="box2">
                    <p>2020年2月网络学院运营工作情况分析</p>
                    <p>所属组织：联通党校</p>
                </div>
            </li>

        </div>
        <div class="ck">
            查看更多
        </div>
    </div>

</div>

<div class="subscript">
    <div class="content bx">
        <div class="item">
            <img class="logo" src="http://wsxy.chinaunicom.cn/learner/assets/learner/unicomlogo.png" alt="">
        </div>
        <div class="item">
            <div class="title" >客服电话：15611085701</div>
            <div class="subtitle" >服务时间：法定工作日，8：00-18：30</div>
        </div>
        <div class="item">
            <img onclick="show()" class="ewm" src="http://wsxy.chinaunicom.cn/content/upload/2020/07/10/a43329d6-1d84-4533-bfbd-5b333b21db31.png" alt="中国联通微学堂">
            <p>中国联通微学堂</p>
        </div>
    </div>
    <div class="mask">
        <div class="pane">
            <img src="http://wsxy.chinaunicom.cn/content/upload/2020/07/10/a43329d6-1d84-4533-bfbd-5b333b21db31.png" alt="">
            <span onclick="hide()" class="close">x</span>
        </div>
    </div>
</div>
<script>

    let lbt = document.getElementsByClassName("bg")[0];


    // 1. 获取所有的标题 li; 监听鼠标放到这个li时机
    let current = 0;
    let titleLis = document.querySelectorAll(".title-pane>li");
    let imageLis = document.querySelectorAll(".image-pane>li");
    for (let i = 0, len = titleLis.length; i < len; i++) {
        let titleLi = titleLis[i];
        titleLi.onmouseover = function () {
            // console.log("当前鼠标放到了li", i)

            // 1.0 清空上一个元素  class
            titleLis[current].className = ""
            imageLis[current].className = ""

            // 1.1 给当前这个需要对应的标题li 添加一个active类名
            titleLis[i].className = "active"

            // 1.2 给同样序号的 图片 li, 添加一个active类名
            imageLis[i].className = "active"


            current = i;
            lbt.style.backgroundImage = `url(${imageLis[i].getElementsByTagName("img")[0].src})`;

        }
    }


</script>

<script>

    function show() {
        let mask = document.getElementsByClassName("mask")[0]
        mask.classList.add("show")
    }
    function hide() {
        let mask = document.getElementsByClassName("mask")[0]
        mask.classList.remove("show")
    }


</script>

</body>
</html>